package o;

import android.app.Activity;
import android.app.AlertDialog;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
import o.axa.j;

public class axr extends AlertDialog implements axq {
    private Activity ˋ;

    axr(Activity activity) {
        super(activity, j.ˏ);
        this.ˋ = activity;
    }

    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
    }

    public void show() {
        super.show();
        Window window = getWindow();
        if (window != null) {
            LayoutParams attributes = window.getAttributes();
            if (this.ˋ.getResources().getConfiguration().orientation == 2) {
                attributes.gravity = 17;
                attributes.width = (int) (((double) azb.ॱ(ContentManager.getInstant().getContext())) * 0.6d);
                attributes.height = epv.ॱ(ContentManager.getInstant().getContext()) - epv.ˋ(ContentManager.getInstant().getContext(), 32);
            } else {
                attributes.gravity = 80;
                attributes.width = azb.ॱ(ContentManager.getInstant().getContext()) - epv.ˋ(ContentManager.getInstant().getContext(), 32);
                attributes.height = (int) (((double) epv.ॱ(ContentManager.getInstant().getContext())) * 0.6d);
            }
            window.setAttributes(attributes);
        }
    }

    public void ॱ(View view) {
        show();
        setContentView(view);
    }
}
